import request from '@/utils/request'
import Axios from "axios";

// 查询【请填写功能名称】列表
export function getManageOpt() {
  return request({
    url: '/termination/focus/userlist',
    method: 'get'
  })
}


export function getprivateFacilityOpt() {
  return request({
    url: 'termination/focus/getprivateFacilityOpt',
    method: 'get'
  })
}

export function addForm(ruleForm) {
  return request({
    url: 'termination/focus/addForm',
    method: 'post',
    data: ruleForm
  })
}

export function getBaiDuMap(data) {
  return Axios({
    url: "http://api.map.baidu.com/place/v2/suggestion?query="+data+"&city_limit=true&output=json&ak=gCp7NMFEdRgeabbmbESwXHtly6obtTGg",
    method: "get",
  })
}
